﻿<controls:ChildWindow 
    x:Class="FU.Capstones.IMS.Web.Silverlight.Popups.AddNewContactPopup"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:Controls="clr-namespace:FU.Capstones.IMS.Web.Silverlight.Controls"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    Title="Thông tin liên hệ"
    Style="{StaticResource ChildWindowStyle}">

    <telerik:RadBusyIndicator 
        BusyContent="Vui lòng đợi khi dữ liệu đang được xử lý!" 
        IsBusy="{Binding Path=IsBusy}">
        <StackPanel 
            x:Name="LayoutRoot" Margin="2"
            Orientation="Vertical">        
        
            <TextBlock 
                Style="{StaticResource ErrorMessageTextBlockStyle}"
                Text="{Binding Path=Message, Mode=TwoWay}"
                Visibility="{Binding Path=MessageVisibility, Mode=TwoWay}"
                />
        
            <Controls:ContactControl />
            <!--Buttons-->
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                <Controls:SaveButtonControl />
                <Controls:BackButtonControl />
            </StackPanel>
        </StackPanel>
    </telerik:RadBusyIndicator>
</controls:ChildWindow>